<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>
<body>
    <div id="app">  </div>
    <template id="my-app">
        <h2 v-if="count === 1">hello world</h2>
        <h2 v-else-if="count === 2">こんにちは</h2>
        <h2 v-else>你好世界</h2>

        <button @click="change">切换</button>
    </template>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        const App = {
            template:'#my-app',
            data(){
                return {
                   isShow:false,
                   count:0
                }
            },
            methods:{
                change(){
                    // this.isShow = !this.isShow
                    this.count++
                    if(this.count > 2){
                        this.count = 0
                    }
                }
            }
        }
        Vue.createApp(App).mount('#app')
    </script>
</body>
</html>